package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.model.Student;
import com.ygs.secs.mapper.StudentMapper;
import com.ygs.secs.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    private StudentMapper studentMapper;

    @Override
    public int deleteByPrimaryKey(String stuid) {
        return studentMapper.deleteByPrimaryKey(stuid);
    }

    @Override
    public int insert(Student record) {
        return studentMapper.insert(record);
    }

    @Override
    public int insertSelective(Student record) {
        return studentMapper.insertSelective(record);
    }

    @Override
    public Student selectByPrimaryKey(String stuid) {
        return studentMapper.selectByPrimaryKey(stuid);
    }

    @Override
    public int updateByPrimaryKeySelective(Student record) {
        return studentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Student record) {
        return studentMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Student> list) {
        return studentMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Student> list) {
        return studentMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Student> list) {
        return studentMapper.batchInsert(list);
    }

    @Override
    public int batchDelete(String[] students) {
        return studentMapper.batchDelete(students);
    }

    @Override
    public Student getstudetailinfo(String stuid) {
        return studentMapper.getstudetailinfo(stuid);
    }

    @Override
    public int checkpwd(String stuid, String newpwd) {
        return studentMapper.checkpwd(stuid, newpwd);
    }

    @Override
    public List<Student> getStudentByAttributes(Student record) {
        return studentMapper.getStudentByAttributes(record);
    }

}


